//
//  EventsCellViewController.m
//  Best
//
//  Created by iDeneb on 7/12/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "EventsCellViewController.h"


@implementation EventsCellViewController

@synthesize eventLabel,timeLabel,detailLabel;

- (void) setUserCount:(int) count{
	userCount = count;
}

- (void)viewDidLoad {
    [super viewDidLoad];
	
	switch (userCount) {
		case 0:{
			[eventLabel setText: NSLocalizedString(@"event_transfer", @"")];
			[timeLabel setText: NSLocalizedString(@"7/24/2010 2:06:27 PM", @"")];
			[detailLabel setText: NSLocalizedString(@"event_detail1", @"")];
		}
			break;
		case 1:{
			[eventLabel setText: NSLocalizedString(@"event_update", @"")];
			[timeLabel setText: NSLocalizedString(@"7/24/2010 6:06:27 PM", @"")];
			[detailLabel setText: NSLocalizedString(@"event_detail1", @"")];
		}
			break;
		case 2:{
			[eventLabel setText: NSLocalizedString(@"event_finish", @"")];
			[timeLabel setText: NSLocalizedString(@"7/24/2010 4:06:27 PM", @"")];
			[detailLabel setText: NSLocalizedString(@"event_detail2", @"")];
		}
			break;
		default:
			break;
	}
	
}


- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}

@end
